package org.qydjk.common.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;


/**
 * Created by Administrator on 2018/1/10 0010.
 */
public class RegularValidatorUtil {

    /**
     * 大陆手机号码验证
     * @param cellphone 待验证号码
     * @return false: 非手机号码  true: 是手机号码
     */
    public static boolean checkCellphone(String cellphone) {
        String regExp = "^([1-9])\\d{10}$";
        Pattern p = Pattern.compile(regExp);
        Matcher m = p.matcher(cellphone);
        return m.matches();
    }
}
